module.exports = app=>{
    const{
        STRING
    } = app.Sequelize;
    const Clazz = app.model.define('clazz',{
        name:STRING
    })
    Clazz.associate = () => {
        app.model.Clazz.hasMany(app.model.Student, {
            foreignKey: "clazz_id",
            targetKey: "id",
        })
    }
    return Clazz
}